/* 编码规则编辑/新增接口
 * @data 所传参数
 * @url 请求地址
 * @method 请求方法
 */
/* 下拉通用接口 */
export const comboBoxSelect = (data) => {
  return axios({
    url: `/base/dict/comboBoxData/${data}`,
    method: 'get'
  })
}
/* 修改规则编码 */
export const reviseRules = (data) => {
  return axios({
    url: '/base/rule/update',
    method: 'put',
    data
  })
}
/*新增编码规则 */
export const addRules = (data) => {
  return axios({
    url: "/base/rule/save",
    method: 'post',
    data
  })
}
/* 对照表删除 */
export const compareTableDel = (data) => {
  return axios({
    url: '/base/rule/ruleSegSwitch/del',
    method: 'post',
    data
  })
}
/* 规则组合段删除 */
export const compareTableDels = (data)=>{
  return axios({
    url:`/base/rule/ruleSegments/${data}`,
    method:'delete'
  })
}
